﻿using System;
using System.Collections.Generic;
using System.Text;
using Models;
using Repositories;
using Application.IService;
using Repositories.IRepository;

namespace Application.Service
{
    public class StudentService : IStudentService
    {

        private readonly IStudentRepository _repository;
        public StudentService(IStudentRepository repository)
        {
            _repository = repository;
        }

        public student GetById(int id)
        {
            return _repository.GetById(id);
        }
    }
}
